
package ro.qi.framework.sys.security.entities;

import java.util.Date;

import ro.qi.framework.sys.entities.Entity;

public class SecurityGroup extends Entity {

	public SecurityGroup() {
		super();
	}

	public SecurityGroup(int id) {
		super();
		setId(id);
		select();
	}

	public SecurityGroup(String name) {
		super();
		setName(name);
		select();
	}

	public void setId(int value) {
		setValue("id", value);
	}

	public int getId() {
		return getIntValue("id");
	}

	public void setSiteId(int value) {
		setValue("siteId", value);
	}

	public int getSiteId() {
		return getIntValue("siteId");
	}

	public void setParentId(int value) {
		setValue("parentId", value);
	}

	public int getParentId() {
		return getIntValue("parentId");
	}

	public void setName(String value) {
		setValue("name", value);
	}

	public String getName() {
		return getStringValue("name");
	}

	public void setDescription(String value) {
		setValue("description", value);
	}

	public String getDescription() {
		return getStringValue("description");
	}

	public void setLocked(boolean value) {
		setValue("locked", value);
	}

	public boolean isLocked() {
		return getBooleanValue("locked");
	}

	public Date getCreatedTime() {
		return getDateValue("createdTime");
	}

	public Date getUpdatedTime() {
		return getDateValue("updatedTime");
	}

}
